/* Modern Header with Blue Gradient */
.modern-header {
    background: linear-gradient(135deg, #0a2540 0%, #0e4165 50%, #28a9e2 100%);
    box-shadow: 0 8px 32px rgba(14, 65, 101, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    height: 40px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.location-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: white;
}

.nav-item-active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #0e4165;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background-color: #f0f9ff;
    color: #28a9e2;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

/* Modern Footer with Blue Gradient */
.modern-footer {
    background: linear-gradient(135deg, #0e4165 0%, #28a9e2 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #add6e8;
}

.modern-footer a {
    transition: opacity 0.3s ease;
}

.modern-footer a:hover {
    opacity: 0.8;
}

/* Main Container */
.main-container {
    min-height: calc(100vh - 200px);
    background-color: #f8f9fa;
}

/* Page Title */
.page-title {
    color: #0e4165;
    font-weight: 700;
    font-size: 2rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #28a9e2;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Modern Card */
.modern-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Section Title */
.section-title {
    color: #0e4165;
    font-weight: 600;
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #28a9e2;
}

/* Form Controls */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.6rem 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #28a9e2;
    box-shadow: 0 0 0 0.2rem rgba(40, 169, 226, 0.25);
}

/* Photo Section */
.photo-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.photo-container {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.photo-preview {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #28a9e2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-container:hover .photo-overlay {
    opacity: 1;
}

/* Documents Section */
.documents-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.document-item {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.document-upload {
    position: relative;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0e4165 0%, #28a9e2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a2540 0%, #0e4165 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: #28a9e2;
    border-color: #28a9e2;
}

.btn-outline-primary:hover {
    background-color: #28a9e2;
    border-color: #28a9e2;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .modern-card {
        margin-top: 1rem;
    }
    
    .photo-container {
        max-width: 200px;
    }
}

/* Loading Indicator */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Customization */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* File Status */
#contratoStatus .alert,
#electroStatus .alert {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* SweetAlert2 Custom Styles */
.swal2-popup {
    border-radius: 12px;
}

.swal2-title {
    color: #0e4165;
}

.swal2-confirm {
    background: linear-gradient(135deg, #0e4165 0%, #28a9e2 100%) !important;
    border-radius: 8px;
}
